package test;

import RentCarProject.MyButton;

import javax.swing.*;
import java.awt.*;

public class returnCarFrame extends JFrame {
    JLabel thislabel;
    JTextField textfield;
    MyButton button1,button2;
    public returnCarFrame() {
        setLayout(null);
        setSize(400,250);
        setLocationRelativeTo(null);
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

        thislabel = new JLabel("请输入租车密钥");
        thislabel.setBounds(145,40,200,40);
        thislabel.setFont(new Font("宋体",Font.BOLD,15));
        textfield=new JTextField();
        textfield.setBounds(160,90,80,30);

        button1=new MyButton("还车");
        button1.setBounds(80,150,100,40);
        button2=new MyButton("退出");
        button2.setBounds(220,150,100,40);

        add(thislabel);
        add(textfield);
        add(button1);
        add(button2);
        setVisible(true);
    }

    public static void main(String[] args) {
        new returnCarFrame();
    }
}